package com.westos.userauth.dao;

import com.westos.userauth.domain.PartyRelationship;
import com.westos.userauth.dto.PartyRelationshipDTO;
import com.westos.userauth.dto.RoleDto;

import java.util.Date;

//卢梓浩
public interface PartyRelationshipDao {

    //创建party之间的关系
    int insertPartyRelationship(PartyRelationship partyRelationship, String relationshipName);//

    //修改party之间的关系
    int updatePartyRelationship(PartyRelationship partyRelationship);

    // 删除party的关系
    int deletePartyRelationship(Date fromDate);

    // 创建party的关系和角色
    int insertPartyRelationshipAndRole(String roleTypeId,String relationshipName,Date fromDate);

    //创建关系类型
    int insertPartyRelationshipType(String partyRelationshipTypeId);

    // 创建party的关系和角色
    int insertUpdatePartyRelationshipAndRoles(String roleTypeId,String relationshipName,Date fromDate);
    int UpdatePartyRelationshipAndRoles(Date thurDate);

    //根据id查询PartyRelationship
    PartyRelationship queryById(String partyIdFrom);




}
